//
//  LogCatAesHelper.h
//  LogCat
//
//  Created by 清风徐来 on 2023/11/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LogCatAesHelper : NSObject

/**
 * AES 加密
 * - Parameters:
 *   - plainText: 待加密字符
 *   - password: 加密密钥
 *   - key: 鉴权
 */
+(NSString *)AES128Encrypt:(NSString *)plainText password:(NSString *)password key:(NSString *)key;

/**
 * AES 解密
 * - Parameters:
 *   - cipherText: 待解密字符
 *   - password: 解密密钥
 *   - key: 鉴权
 */
+(NSString *)AES128Decrypt:(NSString *)cipherText password:(NSString *)password key:(NSString *)key;

/**
 * 密码
 * - Parameter key: 鉴权
 */
+(NSString *)passwordWithKey:(NSString *)key;

/// 修复URL
+ (NSString *)fixUrl:(NSString *)str;

@end

NS_ASSUME_NONNULL_END
